{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">发件箱</td>
  </tr>
  <tr>
    <td align="center" valign="top" width="20%" class="block_left">
      {include file="pub_cp_menu.htm"}
    </td>
    <td align="center" valign="top" width="80%" class="block_right">
    {if $get.ope == "detail"}
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_pm_out" target="_self" class="current_place">发件箱</a>
        </td>
        <td align="right" class="current_place" nowrap>&nbsp;</td>
      </tr>
    </table>
    <div class="space"></div>
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="2" align="left">查看短信</td>
      </tr>
      <tr class="block_subtitle">
        <td colspan="2" align="left">{$cp_pm_out_list.subject|str_entag:"space"}</td>
      </tr>
      <tr>
        <td width="20%" align="right" class="block_left">来自</td>
        <td width="80%" align="left" valign="top" class="block_right">
          {$member.username}
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">发送到</td>
        <td align="left" valign="top" class="block_right">
          {$cp_pm_out_list.m_username}
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">时间</td>
        <td align="left" valign="top" class="block_right">
          {$cp_pm_out_list.time|date_format:"%Y-%m-%d %H:%M:%S"}
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">内容</td>
        <td align="left" valign="top" class="block_right">
          {$cp_pm_out_list.content|str_entag:'space,br'}</textarea>
        </td>
      </tr>
      <tr>
        <td colspan="2" align="right" class="block_footer">
          <a href="{$control_index}?act=cp_pm_out&pag={$page}" target="_self">[返回]</a>
          <a href="{$control_index}?act=cp_pm_out&ope=del&piid={$cp_pm_out_list.id}&pag={$page}" target="_self">[删除]</a> 
        </td>
      </tr>
    </table>
    {else}
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_pm_out" target="_self" class="current_place">发件箱</a>
        </td>
        <td align="right" class="current_place" nowrap>&nbsp;</td>
      </tr>
    </table>
    <div class="space"></div>
    <form action="{$control_index}?act=cp_pm_out&ope=save" method="post" name="cp_pm_out" id="cp_pm_out" enctype="multipart/form-data">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="4" align="left">收件箱</td>
      </tr>
      <tr class="block_subtitle" align="center">
        <td width="60%" nowrap>标题</td>
        <td width="20%" nowrap>发送到</td>
        <td width="15%" nowrap>时间</td>
        <td width="5%" nowrap>删除</td>
      </tr>
      {foreach name=cp_pm_out_list from=$cp_pm_out_list item=cp_pm_out_list}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
        <td align="left" nowrap>
          {if $cp_pm_out_list.if_read != 1}
          <b><a href="{$control_index}?act=cp_pm_out&ope=detail&piid={$cp_pm_out_list.id}&pag={$page}" target="_self" title="{$cp_pm_out_list.subject|str_entag:'space,br'}">{$cp_pm_out_list.subject|str_cut:0:64|str_entag:"space,br"}</a></b>
          {else}
          <a href="{$control_index}?act=cp_pm_out&ope=detail&piid={$cp_pm_out_list.id}&pag={$page}" target="_self" title="{$cp_pm_out_list.subject|str_entag:'space,br'}">{$cp_pm_out_list.subject|str_cut:0:64|str_entag:"space,br"}</a>
          {/if}
        </td>
        <td nowrap>{$cp_pm_out_list.m_username}</td>
        <td nowrap>{$cp_pm_out_list.time|date_format:"%Y-%m-%d"}</td>
        <td nowrap><input type="checkbox" name="del[{$cp_pm_out_list.id}]" value="{$cp_pm_out_list.id}" class="checkbox"></td>
      </tr>
      {/foreach}
      <tr>
        <td colspan="7" align="center" class="block_footer">
          <input type="submit" value="确定" name="cp_profile_submit" id="cp_profile_submit" class="submit">
        </td>
      </tr>
    </table>
    </form>
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="right">
        {if $pagination.page_total > 1}
          <span class="pagination_post_list">
            <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
            <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
            {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
            {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
            {foreach name=page_list from=$pagination.page_list item=page_list}
              {if $page_list.if_current == "1"}
                <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
              {else}
                <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
              {/if}
            {/foreach}
            {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
            {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
            <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
            {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
            {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
            {foreach name=page_select from=$pagination.page_select item=page_select}
              {if $page_select.if_current == "1"}
                <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
              {else}
                <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
              {/if}
            {/foreach}
            {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
            {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
            </select>
          </span>
        {/if}
        </td>
      </tr>
    </table>
    {/if}
    </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"} 